
public class KGram {

	long value;
	int startPos;
	int endPos;
	int line;

	KGram(long v, int s, int e, int l) {
		this.value = v;
		this.startPos = s;
		this.endPos = e;
		this.line = l;
	}

	KGram(KGram k) {
		this.value = k.value;
		this.startPos = k.startPos;
		this.endPos = k.endPos;
		this.line = k.line;
	}

	public static KGram max() {
		return new KGram(Long.MAX_VALUE, 0, 0, 0);
	}

	public void print() {
			if (this.endPos == -1) {
				System.out.print("Line : "+ this.line + "[" + startPos + ";" + "end" + "[ " + value);
			}
			else {
				System.out.print("Line : "+ this.line + "[" + startPos + ";" + endPos + "[ " + value);
			}
	}

}
